package com.educate.ucenter.dao;

import com.educate.ucenter.dao.impl.UserDaoImpl;
import com.educate.ucenter.model.bo.UserBO;
import com.educate.ucenter.model.po.User;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;

@Repository
public interface UserDao extends MongoRepository<User, String> {

    /**
     * #{@link UserDaoImpl#query(UserBO, Pageable)}
     */
    Page<User> query(UserBO bo, Pageable pageable);
}
